/* Check JER_Bitmatrix( JER_Matrix ). 
   reed_sol... already checked. */
#include <stdio.h>
#include "jerasure.h"
#include "reed_sol.h"

int main( int argc, char** argv )
{
	int *old_matrix;
	int *bit_matrix;
	int m = atoi( argv[1] );
	int k = atoi( argv[2] );
	int w = atoi( argv[3] );
	
	old_matrix = reed_sol_vandermonde_coding_matrix( k, m, w );
	bit_matrix = jerasure_matrix_to_bitmatrix( k, m, w, old_matrix );
	if( bit_matrix != NULL )
		jerasure_print_bitmatrix( bit_matrix, m*w, k*w, w );

	return 0;
}
